<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-支付宝</title>
<meta name="keywords" content="天天互保"> 
<meta name="format-detection" content="telephone=no" />
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/admin.css">
<script src="__JS__/jquery.min.js"></script>
</head>
<body style="background:#3d3a3c;">
	<div class="bankcard font14">
	<foreach name="Alrr" item="vo" >
		<div class="cards">
		<div class="alipaya">
			<img src="__IMG__/alipay_bg<?php echo ++$i;?>.png"/>
          <input type="hidden" class="hi" value="{$vo.aid}">
          <p> {$vo.alipay} </p>
		</div>

		</foreach>
		<button class="submits font14 cardtj" onclick="window.location.href='__URL__/addalipay'">
		<img src="__IMG__/addmoneycard.png" style="width:10px;"/> 绑定新支付宝</button>
	</div>

	<!--BEGIN 弹出框-->
	<div class="pop_up" id="pop1" style="display:none;">
		<div class="pop_upbg"></div>
		<div class="pop_uplog font14">
			<div class="pop_title">确定要解除绑定吗？</div>
			<div class="pop_button">
				<a href="javascript:;" class="btn_right">确定</a>
				<a href="javascript:void(0);">取消</a>
			</div>
		</div>
	</div>
	<!--END 弹出框-->
<script>
$('.alipaya').on('click', function () {
	var a=$(this).children('.hi').val();
	$('#pop1').show().on('click', '.pop_button a', function () {

					$.post("__URL__/ajie", {id:a}, function (data) {
				if (data==1) {
					// alert("解除绑定");
					location.reload([true]) 
				}else{
					alert("解除失败")
				}
			})
		$('#pop1').off('click').hide();
	});
})
</script>
</body>
</html>